const RestResult = require("../util/RestResult");
let result = {};


/**
 * 添加用户
 */
result.api_addUser = (requestParam) => {
    global.sqlUtil.insert("user", requestParam);
    return RestResult.success(null, "addSuccess", "添加成功");
}

result.api_getUserList = (requestParam) => {
    let json = {}
    return RestResult.success(global.sqlUtil.select("userAccount", requestParam),"getSuccess","获取成功");
}

result.api_test = (requestParam) => {
    let json = {}
    return RestResult.success(global.sqlUtil.select("userAccount", requestParam),"getSuccess","获取成功");
}


module.exports = result;

